package com.party.core.model.photo;

import com.party.core.model.BaseModel;

/**
 * @Description: 用户操作相册详情
 * @Author: yangshoukun
 * @Date: 2018/5/29 18:02
 */
public class PhotosMemberOperateDetail extends BaseModel {

    private static final long serialVersionUID = -316098427790743756L;
    // 用户编号
    private String memberId;
    // 项目id
    private String photosId;
    // 操作统计id
    private String operateId;
    // 操作类型code
    private Integer code;
    // 操作名称
    private String name;
    // 图片id
    private String imgId;

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getPhotosId() {
        return photosId;
    }

    public void setPhotosId(String photosId) {
        this.photosId = photosId;
    }

    public String getOperateId() {
        return operateId;
    }

    public void setOperateId(String operateId) {
        this.operateId = operateId;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImgId() {
        return imgId;
    }

    public void setImgId(String imgId) {
        this.imgId = imgId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof PhotosMemberOperateDetail)) return false;
        if (!super.equals(o)) return false;

        PhotosMemberOperateDetail that = (PhotosMemberOperateDetail) o;

        if (memberId != null ? !memberId.equals(that.memberId) : that.memberId != null) return false;
        if (photosId != null ? !photosId.equals(that.photosId) : that.photosId != null) return false;
        if (operateId != null ? !operateId.equals(that.operateId) : that.operateId != null) return false;
        if (code != null ? !code.equals(that.code) : that.code != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        return imgId != null ? imgId.equals(that.imgId) : that.imgId == null;
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (memberId != null ? memberId.hashCode() : 0);
        result = 31 * result + (photosId != null ? photosId.hashCode() : 0);
        result = 31 * result + (operateId != null ? operateId.hashCode() : 0);
        result = 31 * result + (code != null ? code.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (imgId != null ? imgId.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "PhotosMemberOperateDetail{" +
                "memberId='" + memberId + '\'' +
                ", photosId='" + photosId + '\'' +
                ", operateId='" + operateId + '\'' +
                ", code=" + code +
                ", name='" + name + '\'' +
                ", imgId='" + imgId + '\'' +
                '}';
    }
}
